package com.heyun.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.heyun.bean.HeyunEmp;
import com.heyun.dao.MessageMapper;
import com.heyun.service.MessageService;

@Service
public class MessageServiceImpl implements MessageService {

	@Autowired
	private MessageMapper messageMapper;
	

	@Override
	public HeyunEmp getEmpById(int empId) {
		HeyunEmp emp = messageMapper.getEmpById(empId);
		return emp;
	}


	@Override
	public int updateEmpByEmpId(HeyunEmp emp) {
		return messageMapper.updateEmpByEmpId(emp);
	}

}
